package com.javaclimb.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Comment {
    /*评论id*/
    private Integer id;
    /*用户id*/
    private Integer userId;
    /*古树id*/
    private Integer treeId;
    /*评论点赞数量*/
    private Integer zan;
    /*评论内容*/
    private String content;
    /*评论时间*/
    private Date createTime;
    /*评论用户名字*/
    private String username;
    /*评论用户头像*/
    private String avator;
    /*评论开始时间*/
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
    private Date startTime;
    /*评论结束时间*/
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
    private Date endTime;
    private Integer page;
    private Integer pageSize;


}
